package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DbLinkInstanceArg {
    private String pk_name = "db_link_id";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DbLinkInstanceCriteria> oredCriteria;

    public DbLinkInstanceArg() {
        oredCriteria = new ArrayList<DbLinkInstanceCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DbLinkInstanceCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DbLinkInstanceCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DbLinkInstanceCriteria or() {
    	DbLinkInstanceCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DbLinkInstanceCriteria createCriteria() {
    	DbLinkInstanceCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DbLinkInstanceCriteria createCriteriaInternal() {
    	DbLinkInstanceCriteria criteria = new DbLinkInstanceCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DbLinkInstanceCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DbLinkInstanceCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DbLinkInstanceCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DbLinkInstanceCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DbLinkInstanceCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DbLinkInstanceCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DbLinkInstanceCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DbLinkInstanceCriterion(condition, value1, value2));
        }

        public DbLinkInstanceCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkIdIsNull() {
            addCriterion("db_link_id is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdIsNotNull() {
            addCriterion("db_link_id is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdEqualTo(Integer value) {
            addCriterion("db_link_id =", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotEqualTo(Integer value) {
            addCriterion("db_link_id <>", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdGreaterThan(Integer value) {
            addCriterion("db_link_id >", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("db_link_id >=", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdLessThan(Integer value) {
            addCriterion("db_link_id <", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdLessThanOrEqualTo(Integer value) {
            addCriterion("db_link_id <=", value, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdLeftLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotLeftLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdRightLike(Integer value) {
            addCriterion("db_link_id like ", value, "db_link_id", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotRightLike(Integer value) {
            addCriterion("db_link_id  not like ", value, "db_link_id", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdIn(List<Integer> values) {
            addCriterion("db_link_id  in ", values, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotIn(List<Integer> values) {
            addCriterion("db_link_id not in ", values, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdBetween(Integer value1, Integer value2) {
            addCriterion("db_link_id between ", value1, value2, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkIdNotBetween(Integer value1, Integer value2) {
            addCriterion("db_link_id not between ", value1, value2, "db_link_id");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbBaseIdIsNull() {
            addCriterion("db_base_id is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdIsNotNull() {
            addCriterion("db_base_id is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdEqualTo(Integer value) {
            addCriterion("db_base_id =", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotEqualTo(Integer value) {
            addCriterion("db_base_id <>", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdGreaterThan(Integer value) {
            addCriterion("db_base_id >", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("db_base_id >=", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdLessThan(Integer value) {
            addCriterion("db_base_id <", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdLessThanOrEqualTo(Integer value) {
            addCriterion("db_base_id <=", value, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdLike(Integer value) {
            addCriterion("db_base_id like ", value, "db_base_id", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotLike(Integer value) {
            addCriterion("db_base_id  not like ", value, "db_base_id", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdLeftLike(Integer value) {
            addCriterion("db_base_id like ", value, "db_base_id", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotLeftLike(Integer value) {
            addCriterion("db_base_id  not like ", value, "db_base_id", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdRightLike(Integer value) {
            addCriterion("db_base_id like ", value, "db_base_id", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotRightLike(Integer value) {
            addCriterion("db_base_id  not like ", value, "db_base_id", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdIn(List<Integer> values) {
            addCriterion("db_base_id  in ", values, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotIn(List<Integer> values) {
            addCriterion("db_base_id not in ", values, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdBetween(Integer value1, Integer value2) {
            addCriterion("db_base_id between ", value1, value2, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbBaseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("db_base_id not between ", value1, value2, "db_base_id");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkNameIsNull() {
            addCriterion("db_link_name is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameIsNotNull() {
            addCriterion("db_link_name is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameEqualTo(String value) {
            addCriterion("db_link_name =", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotEqualTo(String value) {
            addCriterion("db_link_name <>", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameGreaterThan(String value) {
            addCriterion("db_link_name >", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameGreaterThanOrEqualTo(String value) {
            addCriterion("db_link_name >=", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameLessThan(String value) {
            addCriterion("db_link_name <", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameLessThanOrEqualTo(String value) {
            addCriterion("db_link_name <=", value, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameLike(String value) {
            addCriterion("db_link_name like ", value, "db_link_name", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotLike(String value) {
            addCriterion("db_link_name  not like ", value, "db_link_name", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameLeftLike(String value) {
            addCriterion("db_link_name like ", value, "db_link_name", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotLeftLike(String value) {
            addCriterion("db_link_name  not like ", value, "db_link_name", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameRightLike(String value) {
            addCriterion("db_link_name like ", value, "db_link_name", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotRightLike(String value) {
            addCriterion("db_link_name  not like ", value, "db_link_name", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameIn(List<String> values) {
            addCriterion("db_link_name  in ", values, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotIn(List<String> values) {
            addCriterion("db_link_name not in ", values, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameBetween(String value1, String value2) {
            addCriterion("db_link_name between ", value1, value2, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkNameNotBetween(String value1, String value2) {
            addCriterion("db_link_name not between ", value1, value2, "db_link_name");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkMethodIsNull() {
            addCriterion("db_link_method is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodIsNotNull() {
            addCriterion("db_link_method is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodEqualTo(String value) {
            addCriterion("db_link_method =", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotEqualTo(String value) {
            addCriterion("db_link_method <>", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodGreaterThan(String value) {
            addCriterion("db_link_method >", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodGreaterThanOrEqualTo(String value) {
            addCriterion("db_link_method >=", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodLessThan(String value) {
            addCriterion("db_link_method <", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodLessThanOrEqualTo(String value) {
            addCriterion("db_link_method <=", value, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodLike(String value) {
            addCriterion("db_link_method like ", value, "db_link_method", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotLike(String value) {
            addCriterion("db_link_method  not like ", value, "db_link_method", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodLeftLike(String value) {
            addCriterion("db_link_method like ", value, "db_link_method", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotLeftLike(String value) {
            addCriterion("db_link_method  not like ", value, "db_link_method", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodRightLike(String value) {
            addCriterion("db_link_method like ", value, "db_link_method", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotRightLike(String value) {
            addCriterion("db_link_method  not like ", value, "db_link_method", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodIn(List<String> values) {
            addCriterion("db_link_method  in ", values, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotIn(List<String> values) {
            addCriterion("db_link_method not in ", values, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodBetween(String value1, String value2) {
            addCriterion("db_link_method between ", value1, value2, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkMethodNotBetween(String value1, String value2) {
            addCriterion("db_link_method not between ", value1, value2, "db_link_method");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkBodyIsNull() {
            addCriterion("db_link_body is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyIsNotNull() {
            addCriterion("db_link_body is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyEqualTo(String value) {
            addCriterion("db_link_body =", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotEqualTo(String value) {
            addCriterion("db_link_body <>", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyGreaterThan(String value) {
            addCriterion("db_link_body >", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyGreaterThanOrEqualTo(String value) {
            addCriterion("db_link_body >=", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyLessThan(String value) {
            addCriterion("db_link_body <", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyLessThanOrEqualTo(String value) {
            addCriterion("db_link_body <=", value, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyLike(String value) {
            addCriterion("db_link_body like ", value, "db_link_body", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotLike(String value) {
            addCriterion("db_link_body  not like ", value, "db_link_body", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyLeftLike(String value) {
            addCriterion("db_link_body like ", value, "db_link_body", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotLeftLike(String value) {
            addCriterion("db_link_body  not like ", value, "db_link_body", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyRightLike(String value) {
            addCriterion("db_link_body like ", value, "db_link_body", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotRightLike(String value) {
            addCriterion("db_link_body  not like ", value, "db_link_body", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyIn(List<String> values) {
            addCriterion("db_link_body  in ", values, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotIn(List<String> values) {
            addCriterion("db_link_body not in ", values, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyBetween(String value1, String value2) {
            addCriterion("db_link_body between ", value1, value2, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkBodyNotBetween(String value1, String value2) {
            addCriterion("db_link_body not between ", value1, value2, "db_link_body");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkCategoryIsNull() {
            addCriterion("db_link_category is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryIsNotNull() {
            addCriterion("db_link_category is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryEqualTo(String value) {
            addCriterion("db_link_category =", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotEqualTo(String value) {
            addCriterion("db_link_category <>", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryGreaterThan(String value) {
            addCriterion("db_link_category >", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryGreaterThanOrEqualTo(String value) {
            addCriterion("db_link_category >=", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryLessThan(String value) {
            addCriterion("db_link_category <", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryLessThanOrEqualTo(String value) {
            addCriterion("db_link_category <=", value, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryLike(String value) {
            addCriterion("db_link_category like ", value, "db_link_category", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotLike(String value) {
            addCriterion("db_link_category  not like ", value, "db_link_category", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryLeftLike(String value) {
            addCriterion("db_link_category like ", value, "db_link_category", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotLeftLike(String value) {
            addCriterion("db_link_category  not like ", value, "db_link_category", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryRightLike(String value) {
            addCriterion("db_link_category like ", value, "db_link_category", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotRightLike(String value) {
            addCriterion("db_link_category  not like ", value, "db_link_category", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryIn(List<String> values) {
            addCriterion("db_link_category  in ", values, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotIn(List<String> values) {
            addCriterion("db_link_category not in ", values, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryBetween(String value1, String value2) {
            addCriterion("db_link_category between ", value1, value2, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkCategoryNotBetween(String value1, String value2) {
            addCriterion("db_link_category not between ", value1, value2, "db_link_category");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andDbLinkDescIsNull() {
            addCriterion("db_link_desc is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescIsNotNull() {
            addCriterion("db_link_desc is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescEqualTo(String value) {
            addCriterion("db_link_desc =", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotEqualTo(String value) {
            addCriterion("db_link_desc <>", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescGreaterThan(String value) {
            addCriterion("db_link_desc >", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescGreaterThanOrEqualTo(String value) {
            addCriterion("db_link_desc >=", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescLessThan(String value) {
            addCriterion("db_link_desc <", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescLessThanOrEqualTo(String value) {
            addCriterion("db_link_desc <=", value, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescLike(String value) {
            addCriterion("db_link_desc like ", value, "db_link_desc", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotLike(String value) {
            addCriterion("db_link_desc  not like ", value, "db_link_desc", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescLeftLike(String value) {
            addCriterion("db_link_desc like ", value, "db_link_desc", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotLeftLike(String value) {
            addCriterion("db_link_desc  not like ", value, "db_link_desc", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescRightLike(String value) {
            addCriterion("db_link_desc like ", value, "db_link_desc", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotRightLike(String value) {
            addCriterion("db_link_desc  not like ", value, "db_link_desc", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescIn(List<String> values) {
            addCriterion("db_link_desc  in ", values, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotIn(List<String> values) {
            addCriterion("db_link_desc not in ", values, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescBetween(String value1, String value2) {
            addCriterion("db_link_desc between ", value1, value2, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andDbLinkDescNotBetween(String value1, String value2) {
            addCriterion("db_link_desc not between ", value1, value2, "db_link_desc");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andStateIsNull() {
            addCriterion("state is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateLike(String value) {
            addCriterion("state like ", value, "state", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotLike(String value) {
            addCriterion("state  not like ", value, "state", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateLeftLike(String value) {
            addCriterion("state like ", value, "state", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotLeftLike(String value) {
            addCriterion("state  not like ", value, "state", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateRightLike(String value) {
            addCriterion("state like ", value, "state", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotRightLike(String value) {
            addCriterion("state  not like ", value, "state", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateIn(List<String> values) {
            addCriterion("state  in ", values, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotIn(List<String> values) {
            addCriterion("state not in ", values, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateBetween(String value1, String value2) {
            addCriterion("state between ", value1, value2, "state");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between ", value1, value2, "state");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateEqualTo(String value) {
            addCriterion("create_date =", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("create_date <>", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateGreaterThan(String value) {
            addCriterion("create_date >", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("create_date >=", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateLessThan(String value) {
            addCriterion("create_date <", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("create_date <=", value, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateLike(String value) {
            addCriterion("create_date like ", value, "create_date", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotLike(String value) {
            addCriterion("create_date  not like ", value, "create_date", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateLeftLike(String value) {
            addCriterion("create_date like ", value, "create_date", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("create_date  not like ", value, "create_date", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateRightLike(String value) {
            addCriterion("create_date like ", value, "create_date", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotRightLike(String value) {
            addCriterion("create_date  not like ", value, "create_date", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateIn(List<String> values) {
            addCriterion("create_date  in ", values, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("create_date not in ", values, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("create_date between ", value1, value2, "create_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("create_date not between ", value1, value2, "create_date");
            return (DbLinkInstanceCriteria) this;
        }
        public DbLinkInstanceCriteria andStateDateIsNull() {
            addCriterion("state_date is null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateIsNotNull() {
            addCriterion("state_date is not null");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateEqualTo(String value) {
            addCriterion("state_date =", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotEqualTo(String value) {
            addCriterion("state_date <>", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateGreaterThan(String value) {
            addCriterion("state_date >", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("state_date >=", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateLessThan(String value) {
            addCriterion("state_date <", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("state_date <=", value, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateLike(String value) {
            addCriterion("state_date like ", value, "state_date", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotLike(String value) {
            addCriterion("state_date  not like ", value, "state_date", 1);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateLeftLike(String value) {
            addCriterion("state_date like ", value, "state_date", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotLeftLike(String value) {
            addCriterion("state_date  not like ", value, "state_date", 0);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateRightLike(String value) {
            addCriterion("state_date like ", value, "state_date", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotRightLike(String value) {
            addCriterion("state_date  not like ", value, "state_date", 2);
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateIn(List<String> values) {
            addCriterion("state_date  in ", values, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotIn(List<String> values) {
            addCriterion("state_date not in ", values, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("state_date between ", value1, value2, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

        public DbLinkInstanceCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("state_date not between ", value1, value2, "state_date");
            return (DbLinkInstanceCriteria) this;
        }

    }

    public static class DbLinkInstanceCriteria extends GeneratedCriteria {

        protected DbLinkInstanceCriteria() {
            super();
        }
    }

    public static class DbLinkInstanceCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DbLinkInstanceCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DbLinkInstanceCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DbLinkInstanceCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DbLinkInstanceCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DbLinkInstanceCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DbLinkInstanceCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}